<template>
	<view class="setup">
		<view class="item">
			<view class="item-left" @click="GoRepairs()">
				<view class="iconfont icon-baoxiu icon"></view>
				<text class="txt">报修记录</text>
			</view>
			<view class="iconfont icon-right-1-copy"></view>
		</view>
		
		<view class="item">
			<view class="item-left" @click="GoQuestions()">
				<view class="iconfont icon-wentifankui icons"></view>
				<text class="txt txts">反馈记录</text>
			</view>
			<view class="iconfont icon-right-1-copy"></view>
		</view>
		
		<view class="item">
			<view class="item-left">
				<view class="iconfont icon-xiaoxi icon"></view>
				<text class="txt">联系物业</text>
			</view>
			<view class="iconfont icon-right-1-copy"></view>
		</view>
		
		<view class="item">
			<view class="item-left" @click="GoAccountNumber()">
				<view class="iconfont icon-icon02 icon"></view>
				<text class="txt">账号设置</text>
			</view>
			<view class="iconfont icon-right-1-copy"></view>
		</view>
	</view>
</template>

<script>
	export default {
		// 去除微信小程序生成多一层标签
		options : {
			virtualHost : true
		},
		data() {
			return {
				
			};
		},
		methods:{
			GoQuestions(){
				uni.navigateTo({
					url:"/pages/warrantyList/warrantyList"
				})
			},
			GoRepairs(){
				uni.navigateTo({
					url:"/pages/warrantyList/warrantyList"
				})
			},
			GoAccountNumber(){
				let token = uni.getStorageSync("token")
				if(!token){
					uni.navigateTo({
						url:"/pages/Login/Login"
					})
				}
				uni.navigateTo({
					url:'/pages/modified-data/modified-data'
				})
			}
		}
	}
</script>

<style lang="less">
	.setup{
		width: 100%;
		height: 800rpx;
		margin-top: 20rpx;
		background-color: #ffffff;
		padding: 0 0 0 38rpx;
		box-sizing: border-box;
		padding-top: 25rpx;
		.item{
			display: flex;
			justify-content: space-between;
			align-items: center;
			padding-top: 30rpx;
			padding-bottom: 30rpx;
			border-bottom: 1rpx solid #e3e0e0;
			color: #676767;
			.item-left{
				display: flex;
				align-items: center;
				.txts{
					padding-left: 10rpx;
				}
				.icon{
					font-size: 40rpx;
					padding-right: 12rpx;
				}
				.icons{
					font-size: 40rpx;
					padding-right: 12rpx;
					padding-top: 8rpx;
					padding-left: 5rpx;
				}
				.icon-wentifankui{
					font-size: 30rpx;
				}
				.txt{
					font-size: 28rpx;
				}
			}
			.icon-right-1-copy{
				font-size: 35rpx;
				padding-right: 32rpx;
			}
			
		}
	}
</style>